extends base.pug
block title
  if success
    title 登录成功
  else
    title 登录失败


block style
  style.
    html,
    body {
      background: #fff
    }

    body {
      font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    }

    .welcome {
      margin: 50px auto;
      text-align: center;
    }

    .welcome__text {
      display: inline-block;
      width: 80%;
      padding: 15px 28px;
    }

    .welcome--success {
      color: #33cc99;
    }

    .welcome--failure {
      color: #cc3366;
    }

    .success__icon,
    .failure__icon {
      font-size: 76px;
    }

    .success__text,
    .failure__text {
      line-height: 40px;
    }

block vars
  - var bodyClass = 'welcome'
block body
  if success
    .welcome--success
      .success__icon &#10003;
      .success__text 登录成功
  else
    .welcome--failure
      .failure__icon &#10007;
      .failure__text 登录失败


